package com.test.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

@Getter
@Setter
@Accessors(chain = true)
@TableName("t_tree")
public class Tree {

    /**
     * 主键序列ID.
     **/
    @TableId(type = IdType.AUTO)
    private Long id;

    @JsonProperty(value = "pId")
    private Long pId;

    private String ancestors;

    private String name;

    private Integer orderNum;

    @TableField(value = "show_open")
    private boolean open;

    @TableField(value = "is_parent")
    private boolean parent;

}
